package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Client;
import cn.wolfcode.crm.domain.Department;
import cn.wolfcode.crm.query.ClientQueryObject;
import cn.wolfcode.crm.query.PageResult;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.text.ParseException;
import java.util.List;


public interface IClientService {

    void deleteByPrimaryKey(Long id);

    void saveOrUpdate(Client record);

    Client selectByPrimaryKey(Long id);

    List<Client> selectAll();

    Integer selectBirCount() throws ParseException;

    Integer selectbimcount() throws ParseException;

    PageResult query(ClientQueryObject qo);

    void importData(MultipartFile file) throws IOException;

    List<Client> selectExportData(ClientQueryObject qo);

    Boolean selectByName(String name, Long id);

    Boolean selectByNumber(String number, Long id);

    Integer getCount();

    void loginBysale(String name, String password);
}
